<template>
<div class="js_dialog" id="error-dialog" v-show="this.$store.state.errorMsg != ''" >
    <div class="weui-mask"></div>
    <div class="weui-dialog">
        <!-- <div class="weui-dialog__hd"><strong class="weui-dialog__title">弹窗标题</strong></div> -->
        <div class="weui-dialog__bd">{{this.$store.state.errorMsg}}</div>
        <div class="weui-dialog__ft">
        <a @click="clearErroMsg" href="javascript:;" class="weui-dialog__btn primary">确定</a>
        </div>
    </div>
</div>
</template>

<script>
export default  {

    methods:{ // 自定义方法，可对data进行处理
        clearErroMsg(){
            this.$store.state.errorMsg = "";
            if(this.$store.state.setFillInfo = true){
                this.$store.state.fillInfo = true;
                this.$store.state.setFillInfo = false;
            }
        }
    }
}
</script>

<style lang='scss' scoped>

</style>
